cmake_minimum_required(VERSION 3.4.1)

#显示执行构建过程中详细的信息
set(CMAKE_VERBOSE_MAKEFILE on)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11 -Wall -DGLM_FORCE_SIZE_T_LENGTH")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DGLM_FORCE_RADIANS")
set(CPP_SOURCE_DIR ${CMAKE_SOURCE_DIR}/src/main/cpp)
#set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/libs/${CMAKE_BUILD_TYPE}/${ANDROID_ABI})
set(CPP_SOURCES
        ${CPP_SOURCE_DIR}/network/Socket.cpp
        ${CPP_SOURCE_DIR}/network/SocketManager.cpp
        ${CPP_SOURCE_DIR}/network/TcpManager.cpp
        ${CPP_SOURCE_DIR}/network/RequestStream.cpp
        ${CPP_SOURCE_DIR}/network/ResponseStream.cpp
        ${CPP_SOURCE_DIR}/network/DLLExport.cpp
        ${CPP_SOURCE_DIR}/network/JniCallBack.cpp
        ${CPP_SOURCE_DIR}/network/encrypt/aes.cpp
        ${CPP_SOURCE_DIR}/native-lib.cpp)

add_library( network-lib SHARED ${CPP_SOURCES})